package com.elitedatai.mchtest.map.repository;

import com.elitedatai.mchtest.map.model.entity.DeviceFlightAreaEntity;
import org.springframework.data.jpa.repository.JpaRepository;
import java.util.Optional;


public interface DeviceFlightAreaRepository extends JpaRepository<DeviceFlightAreaEntity, Long> {

    /**
     * 根据 workspaceId 和 deviceSn 查询唯一记录
     */
    Optional<DeviceFlightAreaEntity> findByWorkspaceIdAndDeviceSn(String workspaceId, String deviceSn);
}
